<?php
class sfCalendarEntry extends dbObject {
	public $salesforce_event_id;
        public $google_event_id;        

	public function __construct($user_id, $salesforce_event_id) {
		$this->dbTable = "event:{$user_id}";
		$this->tableKey = 'salesforce_event_id';
		$this->keyType = 'string';

		if ($salesforce_event_id != null) {
			$entry = $this->find($salesforce_event_id);
			foreach (get_object_vars($entry) as $key => $val) {
				$this->$key = $val;
			}
		}
	}
}
?>